var express = require('express');
var router = express.Router();

/* GET users listing. */
router.get('/', function(req, res, next) {
  res.send('my name is daydream!');
});

router.get('/all', function(req, res, next) {
  let users = [
    {
      name: 'daydream',
      age: 33
    },
    {
      name: 'wsq',
      age: 28
    }
  ];
  res.send(users);
});
module.exports = router;
